gen party_id_DALP=.c				
replace 	party_id_DALP=	14	 if partyelec_id==	1200701
replace 	party_id_DALP=	17	 if partyelec_id==	1200702
replace 	party_id_DALP=	16	 if partyelec_id==	1200703
replace 	party_id_DALP=	.a	 if partyelec_id==	1200704
replace 	party_id_DALP=	15	 if partyelec_id==	1200705
replace 	party_id_DALP=	.a	 if partyelec_id==	1200706
replace 	party_id_DALP=	.a	 if partyelec_id==	1200707
replace 	party_id_DALP=	.a	 if partyelec_id==	1200708
replace 	party_id_DALP=	17	 if partyelec_id==	1201001
replace 	party_id_DALP=	15	 if partyelec_id==	1201002
replace 	party_id_DALP=	.a	 if partyelec_id==	1201003
replace 	party_id_DALP=	456	 if partyelec_id==	2200701
replace 	party_id_DALP=	459	 if partyelec_id==	2200702
replace 	party_id_DALP=	461	 if partyelec_id==	2200703
replace 	party_id_DALP=	460	 if partyelec_id==	2200704
replace 	party_id_DALP=	462	 if partyelec_id==	2200705
replace 	party_id_DALP=	.a	 if partyelec_id==	2200706
replace 	party_id_DALP=	457	 if partyelec_id==	2200707
replace 	party_id_DALP=	.a	 if partyelec_id==	2200708
replace 	party_id_DALP=	.a	 if partyelec_id==	2200709
replace 	party_id_DALP=	.a	 if partyelec_id==	2200710
replace 	party_id_DALP=	.a	 if partyelec_id==	2200711
replace 	party_id_DALP=	458	 if partyelec_id==	2200712
replace 	party_id_DALP=	.a	 if partyelec_id==	2200713
replace 	party_id_DALP=	.a	 if partyelec_id==	2200714
replace 	party_id_DALP=	.a	 if partyelec_id==	2200715
replace 	party_id_DALP=	.a	 if partyelec_id==	2200716
replace 	party_id_DALP=	.a	 if partyelec_id==	2200720
replace 	party_id_DALP=	459	 if partyelec_id==	2201101
replace 	party_id_DALP=	456	 if partyelec_id==	2201102
replace 	party_id_DALP=	460	 if partyelec_id==	2201103
replace 	party_id_DALP=	461	 if partyelec_id==	2201104
replace 	party_id_DALP=	.a	 if partyelec_id==	2201107
replace 	party_id_DALP=	.a	 if partyelec_id==	2201108
replace 	party_id_DALP=	.a	 if partyelec_id==	2201109
replace 	party_id_DALP=	.a	 if partyelec_id==	2201110
replace 	party_id_DALP=	.a	 if partyelec_id==	2201111
replace 	party_id_DALP=	.a	 if partyelec_id==	2201112
replace 	party_id_DALP=	462	 if partyelec_id==	2201113
replace 	party_id_DALP=	.a	 if partyelec_id==	2201115
replace 	party_id_DALP=	.a	 if partyelec_id==	2201116
replace 	party_id_DALP=	458	 if partyelec_id==	2201118
replace 	party_id_DALP=	.a	 if partyelec_id==	2201119
replace 	party_id_DALP=	.a	 if partyelec_id==	2201120
replace 	party_id_DALP=	159	 if partyelec_id==	3200501
replace 	party_id_DALP=	.c	 if partyelec_id==	3200502
replace 	party_id_DALP=	162	 if partyelec_id==	3200504
replace 	party_id_DALP=	158	 if partyelec_id==	3200505
replace 	party_id_DALP=	160	 if partyelec_id==	3200506
replace 	party_id_DALP=	.a	 if partyelec_id==	3200507
replace 	party_id_DALP=	.a	 if partyelec_id==	3200520
replace 	party_id_DALP=	.a	 if partyelec_id==	3200597
replace 	party_id_DALP=	159	 if partyelec_id==	3200901
replace 	party_id_DALP=	.c	 if partyelec_id==	3200902
replace 	party_id_DALP=	162	 if partyelec_id==	3200904
replace 	party_id_DALP=	158	 if partyelec_id==	3200905
replace 	party_id_DALP=	160	 if partyelec_id==	3200906
replace 	party_id_DALP=	.a	 if partyelec_id==	3200920
replace 	party_id_DALP=	.a	 if partyelec_id==	3200997
replace 	party_id_DALP=	210	 if partyelec_id==	4200701
replace 	party_id_DALP=	209	 if partyelec_id==	4200702
replace 	party_id_DALP=	211	 if partyelec_id==	4200703
replace 	party_id_DALP=	214	 if partyelec_id==	4200704
replace 	party_id_DALP=	213	 if partyelec_id==	4200705
replace 	party_id_DALP=	212	 if partyelec_id==	4200706
replace 	party_id_DALP=	.a	 if partyelec_id==	4200707
replace 	party_id_DALP=	166	 if partyelec_id==	5200701
replace 	party_id_DALP=	170	 if partyelec_id==	5200702
replace 	party_id_DALP=	166	 if partyelec_id==	5200901
replace 	party_id_DALP=	170	 if partyelec_id==	5200902
replace 	party_id_DALP=	166	 if partyelec_id==	5201201
replace 	party_id_DALP=	170	 if partyelec_id==	5201202
replace 	party_id_DALP=	169	 if partyelec_id==	5201203
replace 	party_id_DALP=	.a	 if partyelec_id==	5201204
replace 	party_id_DALP=	.a	 if partyelec_id==	5201205
replace 	party_id_DALP=	.a	 if partyelec_id==	5201206
replace 	party_id_DALP=	139	 if partyelec_id==	6201101
replace 	party_id_DALP=	143	 if partyelec_id==	6201102
replace 	party_id_DALP=	140	 if partyelec_id==	6201103
replace 	party_id_DALP=	141	 if partyelec_id==	6201104
replace 	party_id_DALP=	142	 if partyelec_id==	6201105
replace 	party_id_DALP=	138	 if partyelec_id==	6201106
replace 	party_id_DALP=	137	 if partyelec_id==	6201107
replace 	party_id_DALP=	144	 if partyelec_id==	6201108
replace 	party_id_DALP=	.a	 if partyelec_id==	6201109
replace 	party_id_DALP=	.a	 if partyelec_id==	6201110
replace 	party_id_DALP=	.a	 if partyelec_id==	6201111
replace 	party_id_DALP=	.a	 if partyelec_id==	6201112
replace 	party_id_DALP=	.a	 if partyelec_id==	6201113
replace 	party_id_DALP=	.a	 if partyelec_id==	6201114
replace 	party_id_DALP=	.a	 if partyelec_id==	6201115
replace 	party_id_DALP=	.a	 if partyelec_id==	6201116
replace 	party_id_DALP=	.a	 if partyelec_id==	6201117
replace 	party_id_DALP=	.a	 if partyelec_id==	6201120
replace 	party_id_DALP=	38	 if partyelec_id==	7200701
replace 	party_id_DALP=	28	 if partyelec_id==	7200702
replace 	party_id_DALP=	35	 if partyelec_id==	7200703
replace 	party_id_DALP=	36	 if partyelec_id==	7200704
replace 	party_id_DALP=	29	 if partyelec_id==	7200705
replace 	party_id_DALP=	34	 if partyelec_id==	7200711
replace 	party_id_DALP=	33	 if partyelec_id==	7200712
replace 	party_id_DALP=	27	 if partyelec_id==	7200713
replace 	party_id_DALP=	30	 if partyelec_id==	7200715
replace 	party_id_DALP=	37	 if partyelec_id==	7200716
replace 	party_id_DALP=	32	 if partyelec_id==	7200717
replace 	party_id_DALP=	31	 if partyelec_id==	7200718
replace 	party_id_DALP=	38	 if partyelec_id==	7201001
replace 	party_id_DALP=	28	 if partyelec_id==	7201002
replace 	party_id_DALP=	35	 if partyelec_id==	7201003
replace 	party_id_DALP=	36	 if partyelec_id==	7201004
replace 	party_id_DALP=	34	 if partyelec_id==	7201011
replace 	party_id_DALP=	33	 if partyelec_id==	7201012
replace 	party_id_DALP=	27	 if partyelec_id==	7201013
replace 	party_id_DALP=	30	 if partyelec_id==	7201015
replace 	party_id_DALP=	37	 if partyelec_id==	7201016
replace 	party_id_DALP=	32	 if partyelec_id==	7201017
replace 	party_id_DALP=	31	 if partyelec_id==	7201018
replace 	party_id_DALP=	.a	 if partyelec_id==	7201019
replace 	party_id_DALP=	327	 if partyelec_id==	8200601
replace 	party_id_DALP=	331	 if partyelec_id==	8200602
replace 	party_id_DALP=	330	 if partyelec_id==	8200603
replace 	party_id_DALP=	324	 if partyelec_id==	8200604
replace 	party_id_DALP=	328	 if partyelec_id==	8200606
replace 	party_id_DALP=	326	 if partyelec_id==	8200607
replace 	party_id_DALP=	323	 if partyelec_id==	8200608
replace 	party_id_DALP=	.a	 if partyelec_id==	8200609
replace 	party_id_DALP=	.a	 if partyelec_id==	8200610
replace 	party_id_DALP=	395	 if partyelec_id==	10200901
replace 	party_id_DALP=	396	 if partyelec_id==	10200902
replace 	party_id_DALP=	394	 if partyelec_id==	10200903
replace 	party_id_DALP=	397	 if partyelec_id==	10200904
replace 	party_id_DALP=	398	 if partyelec_id==	10200905
replace 	party_id_DALP=	395	 if partyelec_id==	10201101
replace 	party_id_DALP=	396	 if partyelec_id==	10201102
replace 	party_id_DALP=	394	 if partyelec_id==	10201103
replace 	party_id_DALP=	397	 if partyelec_id==	10201105
replace 	party_id_DALP=	398	 if partyelec_id==	10201106
replace 	party_id_DALP=	136	 if partyelec_id==	11201102
replace 	party_id_DALP=	131	 if partyelec_id==	11201103
replace 	party_id_DALP=	133	 if partyelec_id==	11201104
replace 	party_id_DALP=	.a	 if partyelec_id==	11201105
replace 	party_id_DALP=	132	 if partyelec_id==	11201106
replace 	party_id_DALP=	134	 if partyelec_id==	11201107
replace 	party_id_DALP=	135	 if partyelec_id==	11201108
replace 	party_id_DALP=	.a	 if partyelec_id==	11201110
replace 	party_id_DALP=	.b	 if partyelec_id==	12200901
replace 	party_id_DALP=	.b	 if partyelec_id==	12200902
replace 	party_id_DALP=	.b	 if partyelec_id==	12200903
replace 	party_id_DALP=	.b	 if partyelec_id==	12200904
replace 	party_id_DALP=	.b	 if partyelec_id==	12200905
replace 	party_id_DALP=	.b	 if partyelec_id==	12200906
replace 	party_id_DALP=	182	 if partyelec_id==	13201001
replace 	party_id_DALP=	184	 if partyelec_id==	13201002
replace 	party_id_DALP=	183	 if partyelec_id==	13201003
replace 	party_id_DALP=	.a	 if partyelec_id==	13201004
replace 	party_id_DALP=	.a	 if partyelec_id==	13201005
replace 	party_id_DALP=	.a	 if partyelec_id==	13201020
replace 	party_id_DALP=	.a	 if partyelec_id==	13201097
replace 	party_id_DALP=	18	 if partyelec_id==	14200801
replace 	party_id_DALP=	22	 if partyelec_id==	14200802
replace 	party_id_DALP=	19	 if partyelec_id==	14200803
replace 	party_id_DALP=	21	 if partyelec_id==	14200804
replace 	party_id_DALP=	20	 if partyelec_id==	14200805
replace 	party_id_DALP=	.a	 if partyelec_id==	14200806
replace 	party_id_DALP=	.a	 if partyelec_id==	14200807
replace 	party_id_DALP=	.a	 if partyelec_id==	14200808
replace 	party_id_DALP=	.a	 if partyelec_id==	14200809
replace 	party_id_DALP=	.a	 if partyelec_id==	14200810
replace 	party_id_DALP=	.a	 if partyelec_id==	14200811
replace 	party_id_DALP=	.a	 if partyelec_id==	14200814
replace 	party_id_DALP=	449	 if partyelec_id==	15201001
replace 	party_id_DALP=	.a	 if partyelec_id==	15201002
replace 	party_id_DALP=	453	 if partyelec_id==	15201003
replace 	party_id_DALP=	455	 if partyelec_id==	15201004
replace 	party_id_DALP=	452	 if partyelec_id==	15201005
replace 	party_id_DALP=	448	 if partyelec_id==	15201006
replace 	party_id_DALP=	450	 if partyelec_id==	15201007
replace 	party_id_DALP=	454	 if partyelec_id==	15201008
replace 	party_id_DALP=	451	 if partyelec_id==	15201009
replace 	party_id_DALP=	109	 if partyelec_id==	16201101
replace 	party_id_DALP=	106	 if partyelec_id==	16201102
replace 	party_id_DALP=	112	 if partyelec_id==	16201103
replace 	party_id_DALP=	108	 if partyelec_id==	16201104
replace 	party_id_DALP=	.a	 if partyelec_id==	16201105
replace 	party_id_DALP=	113	 if partyelec_id==	16201106
replace 	party_id_DALP=	107	 if partyelec_id==	16201107
replace 	party_id_DALP=	111	 if partyelec_id==	16201108
replace 	party_id_DALP=	110	 if partyelec_id==	16201109
replace 	party_id_DALP=	.a	 if partyelec_id==	17201204
replace 	party_id_DALP=	.c	 if partyelec_id==	17201205
replace 	party_id_DALP=	403	 if partyelec_id==	17201206
replace 	party_id_DALP=	.a	 if partyelec_id==	17201207
replace 	party_id_DALP=	.a	 if partyelec_id==	17201208
replace 	party_id_DALP=	.a	 if partyelec_id==	17201209
replace 	party_id_DALP=	407	 if partyelec_id==	17201210
replace 	party_id_DALP=	.a	 if partyelec_id==	17201211
replace 	party_id_DALP=	103	 if partyelec_id==	18200601
replace 	party_id_DALP=	105	 if partyelec_id==	18200602
replace 	party_id_DALP=	101	 if partyelec_id==	18200603
replace 	party_id_DALP=	102	 if partyelec_id==	18200604
replace 	party_id_DALP=	104	 if partyelec_id==	18200605
replace 	party_id_DALP=	352	 if partyelec_id==	19200901
replace 	party_id_DALP=	353	 if partyelec_id==	19200902
replace 	party_id_DALP=	351	 if partyelec_id==	19200903
replace 	party_id_DALP=	355	 if partyelec_id==	19200904
replace 	party_id_DALP=	354	 if partyelec_id==	19200905
replace 	party_id_DALP=	350	 if partyelec_id==	19200906
replace 	party_id_DALP=	356	 if partyelec_id==	19200907
replace 	party_id_DALP=	.a	 if partyelec_id==	21201301
replace 	party_id_DALP=	.a	 if partyelec_id==	21201302
replace 	party_id_DALP=	.c	 if partyelec_id==	21201303
replace 	party_id_DALP=	227	 if partyelec_id==	21201304
replace 	party_id_DALP=	.a	 if partyelec_id==	21201305
replace 	party_id_DALP=	228	 if partyelec_id==	21201306
replace 	party_id_DALP=	.c	 if partyelec_id==	21201307
replace 	party_id_DALP=	.a	 if partyelec_id==	21201308
replace 	party_id_DALP=	.a	 if partyelec_id==	21201309
replace 	party_id_DALP=	224	 if partyelec_id==	21201310
replace 	party_id_DALP=	229	 if partyelec_id==	21201311
replace 	party_id_DALP=	.b	 if partyelec_id==	22201301
replace 	party_id_DALP=	.b	 if partyelec_id==	22201302
replace 	party_id_DALP=	.b	 if partyelec_id==	22201303
replace 	party_id_DALP=	.b	 if partyelec_id==	22201320
replace 	party_id_DALP=	484	 if partyelec_id==	23201001
replace 	party_id_DALP=	483	 if partyelec_id==	23201002
replace 	party_id_DALP=	482	 if partyelec_id==	23201003
replace 	party_id_DALP=	.a	 if partyelec_id==	23201004
replace 	party_id_DALP=	.a	 if partyelec_id==	23201005
replace 	party_id_DALP=	.a	 if partyelec_id==	23201006
replace 	party_id_DALP=	.a	 if partyelec_id==	23201007
replace 	party_id_DALP=	.a	 if partyelec_id==	23201008
replace 	party_id_DALP=	.a	 if partyelec_id==	23201009
replace 	party_id_DALP=	.a	 if partyelec_id==	23201010
replace 	party_id_DALP=	.a	 if partyelec_id==	23201011
replace 	party_id_DALP=	.a	 if partyelec_id==	23201020
replace 	party_id_DALP=	.a	 if partyelec_id==	23201097
